package com.ruoyi.system.service;

import java.rmi.AccessException;
import java.util.List;
import com.ruoyi.system.domain.AHousing;
import com.ruoyi.system.domain.vo.*;
import org.springframework.web.multipart.MultipartFile;

import javax.swing.*;

/**
 * 房屋信息Service接口
 *
 * @author gf
 * @date 2024-11-23
 */
public interface IAHousingService {
    /**
     * 查询房屋信息
     *
     * @param id 房屋信息主键
     * @return 房屋信息
     */
    public AHousingHgVO selectAHousingById(Long id);

    /**
     * 查询房屋信息列表
     *
     * @param aHousing 房屋信息
     * @return 房屋信息集合
     */
    public List<AHousing> selectAHousingList(AHousing aHousing);

    /**
     * 新增房屋信息
     *
     * @param aHousing 房屋信息
     * @return 结果
     */
    public int insertAHousing(AHousing aHousing);

    /**
     * 修改房屋信息
     *
     * @param aHousing 房屋信息
     * @return 结果
     */
    public int updateAHousing(AHousing aHousing);

    /**
     * 批量删除房屋信息
     *
     * @param ids 需要删除的房屋信息主键集合
     * @return 结果
     */
    public int deleteAHousingByIds(Long[] ids);

    /**
     * 删除房屋信息信息
     *
     * @param id 房屋信息主键
     * @return 结果
     */
    public int deleteAHousingById(Long id);

    /**
     * 批量逻辑删除房屋信息
     *
     * @param ids 需要删除的房屋信息主键集合
     * @return 结果
     */

    public int logicDeleteAHousingByIds(Long[] ids);
    /**
     * 逻辑删除房屋信息信息
     *
     * @param id 房屋信息主键
     * @return 结果
     */
    public int logicDeleteAHousingById(Long id);

    List<AHousingBackXcxVO> selectAHousingXcxList(AHousingXcxVO aHousing);

    AHousingInfoXcxVO selectAHousingByXcxId(Long id);

    int insertAHousingXcx(AHousing aHousing);

    int insertAHousingXcxEdit(AHousing aHousing);

    SumNumVO selectAHousingCountHousing();

    SumNumVO selectAHousingCountRegion(String region);

    List<AHousingBackXcxVO> selectAHousingMyRegion(AHousing aHousing);

    List<AHousingBackXcxVO> selectAHousingMyHousing(PageVO vo);


    AHousingInfoGetXcxVO selectAHousingByGetXcxId(Long id);

    int selectAHousingByUpdateVisit(Long id);

    int selectAHousingByUpdateExposure(Long id);

    int selectAHousingByUpdatePhone(Long id);

    Long insertAHousingXcxHAdd(AHousing aHousing);

    int deleteAHousingByXcxId(Long id);

    int updateAHousingUpdaTime(Long id);

    int updateAHousingUploadFile(MultipartFile file,Long userId) throws Exception;;

    List<AHousingGoodXcxVO> selectAHousingXcxGoddList(AHousing aHousing);

    int selectAHousingBySendInfor(Long id);
}
